package com.smart.model.dtomapper;

import com.smart.model.domain.QrCodeDO;
import com.smart.model.request.QrCodeRequest;
import com.smart.model.vo.QrCodeVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface QrCodeDtoMapper {

    QrCodeDtoMapper INSTANCE = Mappers.getMapper(QrCodeDtoMapper.class);

    /**
    * DO to VO
    * @param qrCodeDO
    * @return
    */
    QrCodeVO do2VO(QrCodeDO qrCodeDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    QrCodeDO request2DO(QrCodeRequest request);
}
